package zk_project;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class RmiClient {
	public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException {
		String url = "rmi://localhost:1098/zk_project.ServiceImpl";
		Service service = (Service) Naming.lookup(url);
		service.say();
		
	}
}
